import java.util.Arrays;

public class Solution1672 {
    public int maximumWealth(int[][] accounts) {
        int max=0;
        for (int[] account : accounts) {
            max = Math.max(max, Arrays.stream(account).sum());
        }
        return max;
    }

    public static void main(String[] args) {
        System.out.println(new Solution1672().maximumWealth(new int[][]{{1,2,3},{3,2,1}}));
    }
}
